Installation
npm install --save @types/fast-text-encoding
Summary
This package contains type definitions for fast-text-encoding (https://github.com/samthor/fast-text-encoding#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fast-text-encoding.
declare namespace fastTextEncoding {
interface TextEncodingOptions {
stream: boolean;
}
interface TextDecoderOptions {
fatal: boolean;
}
class TextDecoderClass {
encoding: string;
fatal: boolean;
ignoreBOM: boolean;
constructor(utfLabel?: string, options?: TextDecoderOptions);
decode(buffer: Uint8Array, options?: TextEncodingOptions): string;
}
class TextEncoderClass {
encoding: string;
constructor(label?: string);
encode(string: string, options?: TextEncodingOptions): Uint8Array;
}
type TextDecoder = typeof TextDecoderClass;
type TextEncoder = typeof TextEncoderClass;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by Ciarán Ingle.